<template>
  <div class='barcode' v-if='barcodeState'>
    <div class="barcodeIcon"></div>
  </div>
</template>

<script>
  import {mapGetters, mapActions} from 'Vuex'

  export default{

    props: {
      cardItem: {
        type: Object,
        default()  {
          return []
        }
      },
      activeIndex: {
        type: Number,
        default: 0
      }
    },
    computed: {
      ...mapGetters([
        'barcodeState'
      ]),
    },
  }

</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style rel="stylesheet/scss" lang="scss" scoped>
  .barcode {
    width: 100%;
    height: 100%;
    padding-bottom: 56px;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 999;
    background-color: rgba(0, 0, 0, .5);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    .barcodeIcon {
      width: 100%;
      height: 373px;
      background: #ffcc23 url("../../assets/images/barcode.png") no-repeat top;
      -webkit-background-size: 100%;
      background-size: 100%;
      padding-bottom: 37px;
    }
  }

</style>
